package com.mzj.saas.jobs.backlog.controller;

import com.mzj.saas.jobs.backlog.service.BacklogBillService;
import com.mzj.saas.jobs.backlog.service.BacklogUnOpenService;
import com.mzj.saas.jobs.report.service.ReportIncomeExpenditureStatisticsService;
import com.mzj.saas.jobs.report.service.ReportPaymentStatisticsService;
import com.mzj.saas.jobs.report.service.ReportStatementAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/bill")
public class BacklogBillController {
    @Autowired
    private BacklogBillService backlogBillService;
    @Autowired
    private BacklogUnOpenService backlogUnOpenService;
    @Autowired
    private ReportPaymentStatisticsService reportPaymentStatisticsService;
    @Autowired
    private ReportStatementAccountService reportStatementAccountService;
    @Autowired
    private ReportIncomeExpenditureStatisticsService reportIncomeExpenditureStatisticsService;

    @GetMapping("/handleBillBacklog")
    @ResponseBody
    public void handleBillBacklog() throws Exception {
        reportIncomeExpenditureStatisticsService.work();
    }

}
